package com.easychat.entity.constants;

import com.easychat.entity.enums.UserContactTypeEnum;

/**
 * @author kyle.li
 * @version 1.0
 * @description: 常量
 * @date 2024/6/27 21:03
 */
public class Constants {
    public static final String REDIS_KEY_CHECK_CODE = "easychat:checkcode:";

    //用户登录心跳（存储在redis）
    public static final String REDIS_KEY_WS_USER_HEART_BEAT = "easychat:ws:user:heartbeat";

    //存token
    public static final String REDIS_KEY_WS_TOKEN = "easychat:ws:token:";
    //存 userID
    public static final String REDIS_KEY_WS_TOKEN_USERID = "easychat:ws:token:userid";
    //系统设置
    public static final String REDIS_KEY_SYS_SETTING = "easychat:syssetting:";

    public static final Integer REDIS_TIME_1_MIN = 60;

    public static final Integer REDIS_TIME_1_DAY = REDIS_TIME_1_MIN * 60 * 24;
    public static final Integer Length_11 = 11;
    public static final Integer Length_20 = 20;
    public static final String ROBOT_UID = UserContactTypeEnum.USER.getPrefix() + "robot";

}
